<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
	language="java"%>
<%@ include file="/jsp/platform/include/include.jsp"%>
<html>
<head>
<TITLE><c:out value="${_LOGONUSER_.MANAGETITILE}" />
</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<%@ include file="/jsp/platform/include/header.jsp"%>
	<script type="text/javascript">
		    function editOperatorRoles(operatorId,operatorName) {
		        //设置角色
		        window.location.href = '<%=request.getContextPath()%>/manage/operatorInfo/editOperatorRoles?menuType=90&menuId=901020&operatorId='+operatorId+'&operatorName='+operatorName;
			}
		</script>
</HEAD>
<BODY>
	<DIV class="all">
		<%@ include file="/jsp/platform/include/head.jsp"%>
		<%@ include file="/jsp/platform/include/menu.jsp"%>
		<DIV class="mains">
			<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
				<TBODY>
					<TR valign="top">
						<%@ include file="/jsp/platform/include/mainLeft.jsp"%>
						<TD>
							<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
								<TBODY>
									<TR>
										<TD>
											<TABLE width="180" border="0" cellspacing="0" cellpadding="0">
												<TBODY>
													<TR>
														<TD width="7"><IMG width="7" height="36" alt=""
															src="<%=request.getContextPath()%>/images/pages_l.jpg">
														</TD>
														<TD align="center"
															background="<%=request.getContextPath()%>/images/pages_bg.jpg">
															<SPAN class="f_tit1">操作员管理</SPAN>
														</TD>
														<TD width="7"><IMG width="7" height="36" alt=""
															src="<%=request.getContextPath()%>/images/pages_r.jpg">
														</TD>
													</TR>
												</TBODY>
											</TABLE>
										</TD>
									</TR>
								</TBODY>
								<TR>
									<TD>
										<div class="pages_con">
											<FORM name="queryForm" id="queryForm"
												action="<%=request.getContextPath()%>/manage/operatorInfo/list"
												method="post">
												<div class="pages_con_20">
												<div class="transaction_external">
													<DIV class="clearfix">
														<SPAN class="label dl_w"
															style="padding-left:20px;text-align:right;">起止日期：</SPAN>
														<DIV class="select2 date">
																<INPUT name="begindate" class="easyui-datebox"
																	id="begindate" style="border:none" type="text"
																	data-options="formatter:myformatter,parser:myparser"
																	value="<fmt:formatDate value='${model.begindate}' type='date'/>">
															</DIV>
															<SPAN class="label margin_l_5">-</SPAN>
															<DIV class="select2 date">
																<INPUT name="enddate" class="easyui-datebox"
																	id="enddate" style="border:none" type="text"
																	data-options="formatter:myformatter,parser:myparser"
																	value="<fmt:formatDate value='${model.enddate}' type='date'/>">
															</DIV>
														<SPAN class="label margin_l_5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>
														<SPAN class="label dl_w" style="padding-left:20px;"><SELECT
																name="status" id="status"><OPTION
																		value="">全部状态</OPTION>
																	<OPTION value="I" <c:if test="${model.status == 'I'}">selected</c:if>>开启</OPTION>
																	<OPTION value="S" <c:if test="${model.status == 'S'}">selected</c:if>>关闭</OPTION>
															</SELECT> 
														 </SPAN>
													</DIV>

													<DIV class="clearfix">
														<SPAN class="label dl_w"
															style="padding-left:20px;text-align:right;">姓名：</SPAN> <INPUT
															name="operatorName" id="operatorName"
															class="txtbox_cz2 txtbox_cz_long txtbox_cz_color input_change"
															type="text" maxlength="30"
															value="<c:out value='${model.operatorName}'/>">
														<SPAN class="label dl_w"
															style="padding-left:20px;text-align:right;">操作员类型：</SPAN>	
														<SELECT
																name="operatorType" id="operatorType"><OPTION
																		value="">全部类型</OPTION>
																	<OPTION value="1" <c:if test="${model.operatorType == '1'}">selected</c:if>>系统操作员</OPTION>
																	<OPTION value="2" <c:if test="${model.operatorType == '2'}">selected</c:if>>代理商</OPTION>
																	<%-- <OPTION value="3" <c:if test="${model.operatorType == '3'}">selected</c:if>>高级代理商</OPTION>
																	<OPTION value="4" <c:if test="${model.operatorType == '4'}">selected</c:if>>城市运营商</OPTION>
																	<OPTION value="5" <c:if test="${model.operatorType == '5'}">selected</c:if>>普通代理商</OPTION> --%>
															</SELECT> 
														 
														 <SPAN class="label margin_l_5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>
														 <SPAN>
															<A
															class="btn confirm margin_l_10"
															onClick="$('#queryForm').submit();"
															href="javascript:void(0);">查询</A> <A
															class="btn confirm margin_l_10" onClick="editOperatorInfo('add');"
															href="javascript:void(0);">添加操作员</A> </SPAN>
													</DIV>
												</DIV>
											<br>
												<div class="talbes">
													<table style="text-align: center" width="100%" border="0"
														cellpadding="8" cellspacing="0">
														<tbody>
															<tr class="talbe_pubs_tr">
																<td>姓名</td>
																<td>登录名</td>
																<td>联系电话</td>
																<td>操作员类型</td>
																<td>角色组</td>
																<td>状态</td>
																<td>操作</td>
															</tr>
															<c:forEach var="model" items="${list}">
																<tr>
																	<td><c:out value="${model.operatorName}" /></td>
																	<td><c:out value="${model.loginName}" /></td>
																	<td><c:out value="${model.telephone}" /></td>
																	<td>
                                                                    <c:choose>
																		<c:when test="${model.operatorType == '1'}">系统操作员</c:when>
																		<c:when test="${model.operatorType == '2'}">代理商</c:when>
																		<%-- <c:when test="${model.operatorType == '3'}">高级代理商</c:when>
																		<c:when test="${model.operatorType == '4'}">城市运营商</c:when>
																		<c:when test="${model.operatorType == '5'}">普通代理商</c:when> --%>
																		<c:otherwise></c:otherwise>
																	</c:choose>
                                                                    </td>
																	<td><c:out value="${model.roleNames}" /></td>
																	<td><common:getDicByCode key="1141" value="${model.status}"/></td>
																	<td><a href="javascript:"
																		onClick="editOperatorInfo('${model.operatorId}')">修改</a>
																		<a href="javascript:"
																		onClick="editOperatorRoles('${model.operatorId}','${model.operatorName}')">设置角色</a></td>
																</tr>
															</c:forEach>
														</tbody>
													</table>
													<jsp:include page="/jsp/platform/include/kkpager.jsp"></jsp:include>
												</div>
											</div>
										</FORM>	
										 <!--当中内容块结束-->
									</TD>
								</TR>
							</TABLE>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
		</DIV>
		<%@ include file="/jsp/platform/include/foot.jsp"%>
</BODY>
</HTML>
